var controllersPath=res_url;//使用controllers
var hiApp;
/****加载***/
$(function(){
	var params={
		cache:true,
		swipeBackPage:true,
		animation:false,
		ajaxLinks:true,
		controller:CM,
		template:template,
		NoAjaxLinks:[
			'back',
			'swipebox'
			],
		view:{
			selector:'.view-main'
		},
		appInt:function(param){
			
		},
		onBeforeShow: function (param) {
			// alert("onAjaxStart");
			hiApp.showIndicator();
		},
		onAfterShow: function (param) {
			 hiApp.hideIndicator();	 
		},
		// Specify Template7 data for pages
		 onAjaxStart: function (xhr) {
			// alert("onAjaxStart");
			//hiApp.showIndicator();
		},
		onAjaxComplete: function (xhr) {
		  //  hiApp.hideIndicator();
		}
	 };
	 if(typeof(app_params)){
		 for (var param in app_params) {
				params[param] = app_params[param];
		  }
	 }
	 
	 hiApp = new m(params);
	 hiApp.init();		
	 if(app_params.view_type!="app"){
	 	hiApp.run();
	 } 
})

 

 

